package com.beta.cust.bind.webapi.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.Min;
import lombok.Data;


@Data
@ApiModel(value = "分页请求分装类")
public class BaseReq implements Serializable {

  @ApiModelProperty(value = "第几页，默认第一页", required = false)
  @Min(value = 1, message = "页数")
  private int pageNo = 1;

  @ApiModelProperty(value = "每页显示多少条数据，默认10条数据", required = false)
  @Min(value = 1, message = "每页显示多少条数据错误")
  private int pageSize = 10;

}
